package startup

const (
	SectionMysqlXXXDB  = "product-mysql"
	SectionRedisXXX    = "product-redis"
	SectionEmailConfig = "email-config"
	SectionVerifyCode  = "verify-code"
	SectionQueue       = "rabbitmq-xxx"
)

// LoadConfig 加载自定义配置项
func LoadConfig() error {

	// 外部MySQL数据源
	//log.Printf("[info] Load default config %s", SectionMysqlXXXDB)
	//vars.MysqlSettingXXXDB = new(setting.MysqlSettingS)
	//config.MapConfig(SectionMysqlXXXDB, vars.MysqlSettingXXXDB)

	// 加载外部Redis数据源
	//log.Printf("[info] Load default config %s", SectionRedisXXX)
	//vars.RedisSetting = new(setting.RedisSettingS)
	//config.MapConfig(SectionRedisXXX, vars.RedisSetting)

	// 加载email数据源
	//log.Printf("[info] Load default config %s", SectionEmailConfig)
	//vars.EmailConfigSetting = new(vars.EmailConfigSettingS)
	//config.MapConfig(SectionEmailConfig, vars.EmailConfigSetting)

	// 加载验证码配置
	//log.Printf("[info] Load default config %s", SectionVerifyCode)
	//vars.VerifyCodeSetting = new(vars.VerifyCodeSettingS)
	//config.MapConfig(SectionVerifyCode, vars.VerifyCodeSetting)

	// 用户注册通知
	//log.Printf("[info] Load default config %s", SectionQueue)
	//vars.QueueAMQPSetting = new(vars.QueueAMQPSettingS)
	//config.MapConfig(SectionQueue, vars.QueueAMQPSetting)

	return nil
}
